import time


from selenium import webdriver
from selenium.webdriver import ActionChains, Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWait

driver = webdriver.Edge()
driver.get("http://www.baidu.com")
time.sleep(3)

b = driver.find_element(By.ID,"chat-textarea")
b.send_keys('javascript')

b.send_keys(Keys.CONTROL,'a')
time.sleep(1)
b.send_keys(Keys.CONTROL,'C')
time.sleep(1)
b.send_keys(Keys.CONTROL,'V')
time.sleep(1)
b.send_keys(Keys.ENTER)

time.sleep(5)